/*
 * @Author: Suo-Yuheng syh15399227325@163.com
 * @Date: 2025-08-24 15:06:59
 * @LastEditors: Suo-Yuheng syh15399227325@163.com
 * @LastEditTime: 2025-08-24 16:41:13
 * @FilePath: /0824/pipe_use/Task.hpp
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
#pragma once

#include<iostream>
#include<string>
#include<vector>
#include<unistd.h>
#include<cstdlib>
#include<assert.h>
#include<ctime>
#include<sys/wait.h>
#include<sys/stat.h>

// #include<functional>

typedef void (*task_t)();

void task1()
{
    std::cout << " LOL 刷新日志 " << std::endl;
}
void task2()
{
    std::cout << " LOL 刷新蓝量 " << std::endl;
}
void task3()
{
    std::cout << " LOL 刷新血量 " << std::endl;
}
void task4()
{
    std::cout << " LOL 刷新CDCD " << std::endl;
}

void LoadTask(std::vector<task_t>* tasks)
{
    tasks->push_back(task1);
    tasks->push_back(task2);
    tasks->push_back(task3);
    tasks->push_back(task4);

}